src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/z/ZAddress.java
changeset 53815 46ce458df412
parent 50525 767cdb97f103
equal deleted inserted replaced
53814:eff915f3d3f2 53815:46ce458df412
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 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.
    59         VM vm = VM.getVM();
    59         VM vm = VM.getVM();
    60         if (vm.getOS().equals("solaris") && vm.getCPU().equals("sparc")) {
    60         if (vm.getOS().equals("solaris") && vm.getCPU().equals("sparc")) {
    61             value |= ZGlobals.ZAddressSpaceStart;
    61             value |= ZGlobals.ZAddressSpaceStart;
    62         }
    62         }
    63 
    63 
    64         return ZOop.to_address(value);
    64         return ZUtils.longToAddress(value);
    65     }
    65     }
    66 
    66 
    67     static Address good(Address value) {
    67     static Address good(Address value) {
    68         return address(offset(value) | ZGlobals.ZAddressGoodMask());
    68         return address(offset(value) | ZGlobals.ZAddressGoodMask());
    69     }
    69     }