Skip to content

Commit 92efab9

Browse files
author
Boris Ulasevich
committed
8350344: Cross-build failure: _vptr name conflict
Reviewed-by: kvn
1 parent 4fb70c7 commit 92efab9

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

src/hotspot/share/code/codeBlob.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,29 +73,29 @@ static_assert(!std::is_polymorphic<UncommonTrapBlob>::value, "no virtual metho
7373

7474
// Add proxy vtables.
7575
// We need only few for now - they are used only from prints.
76-
const nmethod::Vptr nmethod::_vptr;
77-
const BufferBlob::Vptr BufferBlob::_vptr;
78-
const RuntimeStub::Vptr RuntimeStub::_vptr;
79-
const SingletonBlob::Vptr SingletonBlob::_vptr;
80-
const DeoptimizationBlob::Vptr DeoptimizationBlob::_vptr;
81-
const UpcallStub::Vptr UpcallStub::_vptr;
76+
const nmethod::Vptr nmethod::_vpntr;
77+
const BufferBlob::Vptr BufferBlob::_vpntr;
78+
const RuntimeStub::Vptr RuntimeStub::_vpntr;
79+
const SingletonBlob::Vptr SingletonBlob::_vpntr;
80+
const DeoptimizationBlob::Vptr DeoptimizationBlob::_vpntr;
81+
const UpcallStub::Vptr UpcallStub::_vpntr;
8282

8383
const CodeBlob::Vptr* CodeBlob::vptr() const {
8484
constexpr const CodeBlob::Vptr* array[(size_t)CodeBlobKind::Number_Of_Kinds] = {
8585
nullptr/* None */,
86-
&nmethod::_vptr,
87-
&BufferBlob::_vptr,
88-
&AdapterBlob::_vptr,
89-
&VtableBlob::_vptr,
90-
&MethodHandlesAdapterBlob::_vptr,
91-
&RuntimeStub::_vptr,
92-
&DeoptimizationBlob::_vptr,
93-
&SafepointBlob::_vptr,
86+
&nmethod::_vpntr,
87+
&BufferBlob::_vpntr,
88+
&AdapterBlob::_vpntr,
89+
&VtableBlob::_vpntr,
90+
&MethodHandlesAdapterBlob::_vpntr,
91+
&RuntimeStub::_vpntr,
92+
&DeoptimizationBlob::_vpntr,
93+
&SafepointBlob::_vpntr,
9494
#ifdef COMPILER2
95-
&ExceptionBlob::_vptr,
96-
&UncommonTrapBlob::_vptr,
95+
&ExceptionBlob::_vpntr,
96+
&UncommonTrapBlob::_vpntr,
9797
#endif
98-
&UpcallStub::_vptr
98+
&UpcallStub::_vpntr
9999
};
100100

101101
return array[(size_t)_kind];

src/hotspot/share/code/codeBlob.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class BufferBlob: public RuntimeBlob {
346346
}
347347
};
348348

349-
static const Vptr _vptr;
349+
static const Vptr _vpntr;
350350
};
351351

352352

@@ -434,7 +434,7 @@ class RuntimeStub: public RuntimeBlob {
434434
}
435435
};
436436

437-
static const Vptr _vptr;
437+
static const Vptr _vpntr;
438438
};
439439

440440

@@ -474,7 +474,7 @@ class SingletonBlob: public RuntimeBlob {
474474
}
475475
};
476476

477-
static const Vptr _vptr;
477+
static const Vptr _vpntr;
478478
};
479479

480480

@@ -557,7 +557,7 @@ class DeoptimizationBlob: public SingletonBlob {
557557
}
558558
};
559559

560-
static const Vptr _vptr;
560+
static const Vptr _vpntr;
561561
};
562562

563563

@@ -685,7 +685,7 @@ class UpcallStub: public RuntimeBlob {
685685
}
686686
};
687687

688-
static const Vptr _vptr;
688+
static const Vptr _vpntr;
689689
};
690690

691691
#endif // SHARE_CODE_CODEBLOB_HPP

src/hotspot/share/code/nmethod.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ class nmethod : public CodeBlob {
996996
}
997997
};
998998

999-
static const Vptr _vptr;
999+
static const Vptr _vpntr;
10001000
};
10011001

10021002
#endif // SHARE_CODE_NMETHOD_HPP

0 commit comments

Comments
 (0)