src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/GraalHotSpotVMConfigVersioned.java
changeset 58299 6df94ce3ab2f
parent 52578 7dd81e82d083
equal deleted inserted replaced
58298:0152ad7b38b8 58299:6df94ce3ab2f
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    32  * class accessed from outside this class, be sure to update the field appropriately in all source
    32  * class accessed from outside this class, be sure to update the field appropriately in all source
    33  * files named {@code GraalHotSpotVMConfigVersioned.java}.
    33  * files named {@code GraalHotSpotVMConfigVersioned.java}.
    34  *
    34  *
    35  * Fields are grouped according to the most recent JBS issue showing why they are versioned.
    35  * Fields are grouped according to the most recent JBS issue showing why they are versioned.
    36  *
    36  *
    37  * JDK Version: 12+
    37  * JDK Version: 14+
    38  */
    38  */
    39 final class GraalHotSpotVMConfigVersioned extends HotSpotVMConfigAccess {
    39 final class GraalHotSpotVMConfigVersioned extends HotSpotVMConfigAccess {
    40 
    40 
    41     GraalHotSpotVMConfigVersioned(HotSpotVMConfigStore store) {
    41     GraalHotSpotVMConfigVersioned(HotSpotVMConfigStore store) {
    42         super(store);
    42         super(store);
    79     long heapTopAddress = getFieldValue("CompilerToVM::Data::_heap_top_addr", Long.class, "HeapWord* volatile*");
    79     long heapTopAddress = getFieldValue("CompilerToVM::Data::_heap_top_addr", Long.class, "HeapWord* volatile*");
    80 
    80 
    81     // JDK-8015774
    81     // JDK-8015774
    82     long codeCacheLowBound = getFieldValue("CodeCache::_low_bound", Long.class, "address");
    82     long codeCacheLowBound = getFieldValue("CodeCache::_low_bound", Long.class, "address");
    83     long codeCacheHighBound = getFieldValue("CodeCache::_high_bound", Long.class, "address");
    83     long codeCacheHighBound = getFieldValue("CodeCache::_high_bound", Long.class, "address");
       
    84 
       
    85     // JDK-8229258
       
    86     String markWordClassName = "markWord";
       
    87     String markWordFieldType = "markWord";
       
    88 
       
    89     // JDK-8186777
       
    90     int classMirrorOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "OopHandle");
       
    91     boolean classMirrorIsHandle = true;
    84 }
    92 }