< prev index next >

src/hotspot/share/ci/ciInstanceKlass.cpp

Print this page
rev 52801 : Upstream/backport Shenandoah to JDK11u
* * *
[backport] 8237570: Shenandoah: cleanup uses of allocation/free threshold in static heuristics
Reviewed-by: rkennke

*** 552,561 **** --- 552,567 ---- // may be concurrently initialized for shared ciInstanceKlass objects assert(_has_injected_fields == -1 || _has_injected_fields == has_injected_fields, "broken concurrent initialization"); _has_injected_fields = has_injected_fields; } + bool ciInstanceKlass::has_object_fields() const { + GUARDED_VM_ENTRY( + return get_instanceKlass()->nonstatic_oop_map_size() > 0; + ); + } + // ------------------------------------------------------------------ // ciInstanceKlass::find_method // // Find a method in this klass. ciMethod* ciInstanceKlass::find_method(ciSymbol* name, ciSymbol* signature) {
< prev index next >