RFR: 8277216: Examine InstanceKlass::_misc_flags for concurrency issues
    Coleen Phillimore 
    coleenp at openjdk.java.net
       
    Wed Dec 15 16:22:18 UTC 2021
    
    
  
Recent bug in misc_flags showed that they are not set concurrently and could cause bugs.  Most of the misc_flags are set at classfile parsing time or at a safepoint and never reset.  This change adds an assert that the flag is set once.  See CR for more details.
Tested with tier1-3.
-------------
Commit messages:
 - Move has_resolved_methods to access flags so can be set and tested concurretly.
 - Move has_resolved_methods to access flags so can be set and tested concurretly.
 - 8277216: Examine InstanceKlass::_misc_flags for concurrency issues
Changes: https://git.openjdk.java.net/jdk/pull/6851/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6851&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8277216
  Stats: 32 lines in 2 files changed: 10 ins; 17 del; 5 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6851.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6851/head:pull/6851
PR: https://git.openjdk.java.net/jdk/pull/6851
    
    
More information about the hotspot-dev
mailing list