mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8223794: applications/kitchensink/Kitchensink.java crash bad oop with Graal
Added new nmethod::oop_at_phantom() method for JVMCI to notify GC that oop should be kept alive Reviewed-by: dlong, eosterlund
This commit is contained in:
parent
4934681f19
commit
2ccecc495c
5 changed files with 20 additions and 8 deletions
|
@ -392,6 +392,7 @@ class nmethod : public CompiledMethod {
|
|||
// Support for oops in scopes and relocs:
|
||||
// Note: index 0 is reserved for null.
|
||||
oop oop_at(int index) const;
|
||||
oop oop_at_phantom(int index) const; // phantom reference
|
||||
oop* oop_addr_at(int index) const { // for GC
|
||||
// relocation indexes are biased by 1 (because 0 is reserved)
|
||||
assert(index > 0 && index <= oops_count(), "must be a valid non-zero index");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue