History log of /openjdk10/hotspot/src/share/vm/prims/unsafe.cpp
Revision Date Author Comments
# 13254:c044f8d03932 05-Jul-2017 jwilhelm

8182299: Enable disabled clang warnings, build on OSX 10 + Xcode 8
8182656: Make the required changes in GC code to build on OSX 10 + Xcode 8
8182657: Make the required changes in Runtime code to build on OSX 10 + Xcode 8
8182658: Make the required changes in Compiler code to build on OSX 10 + Xcode 8
Reviewed-by: jwilhelm, ehelin, phh
Contributed-by: phh <hohensee@amazon.com>, jwilhelm <jesper.wilhelmsson@oracle.com>


# 13249:a2753984d2c1 05-Jul-2017 stefank

8183552: Move align functions to align.hpp
Reviewed-by: stuefe, pliden


# 13244:ebbb31f0437e 13-Apr-2017 stefank

8178500: Replace usages of round_to and round_down with align_up and align_down
Reviewed-by: rehn, tschatzl


# 13192:095ddb857f7c 22-Jun-2017 redestad

8182487: Add Unsafe.objectFieldOffset(Class, String)
Reviewed-by: dsimms, twisti, bchristi, mgerdin, psandoz, chegar


# 13082:72abda3e08b6 12-May-2017 kvn

Merge


# 12953:d342027d6321 15-Mar-2017 coleenp

8155672: Remove instanceKlassHandles and KlassHandles
Summary: Summary: Use unhandled pointers for Klass and InstanceKlass, remove handles with no implementation.
Reviewed-by: dholmes, lfoltan, vlivanov, sspitsyn


# 12827:5242609b8088 05-Jun-2017 psandoz

8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
Reviewed-by: psandoz, dholmes, thartmann, kvn
Contributed-by: ron.pressler@oracle.com, claes.redestad@oracle.com


# 12777:0a7b3b558838 11-May-2017 psandoz

8159995: Rename internal Unsafe.compare methods
Reviewed-by: psandoz, dholmes
Contributed-by: ron.pressler@oracle.com


# 12016:a696583f5ddb 06-Sep-2016 mdoerr

8165489: Missing G1 barrier in Unsafe_GetObjectVolatile
Summary: Add missing barrier, sharing code with Unsafe_GetObject.
Reviewed-by: kbarrett, mgerdin, pliden


# 11975:7c505133010d 08-Sep-2016 dlong

Merge


# 11961:e4094bc14d80 30-Aug-2016 zmajo

8161720: Better byte behavior for off-heap data
Summary: Normalize boolean values read with Unsafe.
Reviewed-by: aph, simonis, jrose, psandoz


# 11946:274dc4b09989 07-Sep-2016 hseigel

8058575: IllegalAccessError trying to access package-private class from VM anonymous class
Summary: Put anonymous classes in unnamed package into host class's package. Throw exception if host class's package differs from anonymous class.
Reviewed-by: coleenp, acorn


# 11941:6ed5d1d6f24c 05-Sep-2016 mdoerr

8165018: Missing memory barrier for PPC64 in Unsafe_GetObjectVolatile
Reviewed-by: kbarrett, dholmes


# 11866:abeecea0351c 23-Aug-2016 egahlin

8164523: Clean up metadata for event based tracing
Reviewed-by: mlarsson, mgronlun


# 11857:d0fbf661cc16 21-Aug-2016 dholmes

8157907: Incorrect inclusion of atomic.hpp instead of atomic.inline.hpp
Summary: Remove atomic.inline.hpp and move the contents back into atomic.hpp
Reviewed-by: stefank, pliden, simonis


# 11819:5fd233e7cdc7 16-Aug-2016 hseigel

8030221: Checking for anonymous class should check for NULL as well as potential nesting
Summary: Store the first non-anonymous class as the host when defining the anonymous class so don't need look for it later.
Reviewed-by: dholmes, lfoltan


# 11446:4fce6a99a262 06-Jun-2016 dnsimon

8156587: [JVMCI] remove Unsafe.getJavaMirror and Unsafe.getKlassPointer
Reviewed-by: kvn


# 11157:60b331a4d392 06-May-2016 mikael

8150921: Update Unsafe getters/setters to use double-register variants
Reviewed-by: dholmes, shade, psandoz, jrose


# 11006:70e16990581f 22-Apr-2016 amurillo

Merge


# 10960:5fa2ff32323a 21-Apr-2016 lfoltan

8152949: Jigsaw crash when Klass in _fixup_module_field_list is unloaded
Summary: During start up anonymous classes must be kept alive until after their mirror's module field is patched with java.base
Reviewed-by: coleenp, hseigel
Contributed-by: per.liden@oracle.com, stefan.karlsson@oracle.com


# 10885:4b425192636c 13-Oct-2015 coleenp

8132051: Better byte behavior
Reviewed-by: bdelsart, roland, kvn, jrose, ahgross
Contributed-by: coleen.phillimore@oracle.com, roland.westerlin@oracle.com, vladimir.kozlov@oracle.com, john.r.rose@oracle.com


# 10781:20b66ba124e9 07-Apr-2016 dcubed

Merge


# 10762:ea81fe138932 03-Apr-2016 jprovino

8132524: Missing includes to resourceArea.hpp
Summary: Files that use ResourceMark are missing the include of resourceArea.hpp
Reviewed-by: tschatzl, jwilhelm


# 10698:c17ada687ab0 24-Mar-2016 hseigel

8140665: SIGSEGV when a primitive type's class is used as the host class in a call to DefineAnonymousClass call
Summary: Instead of assertng, throw an exception
Reviewed-by: acorn, coleenp


# 10527:29c7e2e6df92 25-Mar-2016 shade

8152698: Remove obsolete Unsafe.putOrdered{X} methods, usages, runtime and compiler support
Reviewed-by: kvn, psandoz


# 10425:6ff38c89f1f2 03-Mar-2016 mikael

8149159: Clean up Unsafe
Reviewed-by: jrose, kvn, stsmirno, chegar, aph, psandoz, redestad, twisti


# 10328:8b9fdaeb8c57 23-Feb-2016 shade

8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
Reviewed-by: psandoz, kvn, jrose, adinn, simonis, coleenp


# 10248:75f6573e9c44 10-Feb-2016 mikael

8141491: Unaligned memory access in Bits.c
Summary: Introduce alignment-safe Copy::conjoint_swap and j.i.m.Unsafe.copySwapMemory
Reviewed-by: jrose, dholmes, psandoz


# 9801:80f8be586fae 18-Dec-2015 twisti

Merge


# 9769:d84bd22ab531 09-Dec-2015 psandoz

8143628: Fork sun.misc.Unsafe and jdk.internal.misc.Unsafe native method tables
Reviewed-by: shade, dholmes, alanb, chegar, mchung, roland


# 9684:cca80b5ad4d7 08-Dec-2015 mgronlun

8140485: Class load and creation cleanup
Reviewed-by: hseigel, coleenp, sspitsyn


# 9267:5451df1520e3 28-Oct-2015 coleenp

Merge


# 9266:4535697211eb 28-Oct-2015 coleenp

8139203: Consistent naming for klass type predicates
8138923: Remove oop coupling with InstanceKlass subclasses
Summary: Renamed oop_is_instance and friends, removed the functions in oop that dug down into InstanceKlass.
Reviewed-by: jrose, lfoltan, stefank


# 9261:9319d5be1bfb 27-Oct-2015 chegar

8139891: Prepare Unsafe for true encapsulation
Reviewed-by: alanb, dholmes, jrose, psandoz, twisti


# 9244:825cee2cd7a6 22-Oct-2015 goetz

8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux.
Reviewed-by: stuefe, coleenp, roland


# 9099:115188e14c15 09-Oct-2015 david

8042893: compiler: PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC needs to be removed from source files
8042894: runtime: PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC needs to be removed from source files
Reviewed-by: goetz, brutisso


# 9056:dc9930a04ab0 29-Sep-2015 david

8080775: Better argument formatting for assert() and friends
Reviewed-by: kbarrett, pliden


# 8638:767f36deb0dc 23-Jun-2015 bpittore

8081202: Hotspot compile warning: "Invalid suffix on literal; C++11 requires a space between literal and identifier"
Summary: Need to add a space between macro identifier and string literal
Reviewed-by: stefank, dholmes, kbarrett


# 8413:92457dfb91bd 13-May-2015 pliden

8079792: GC directory structure cleanup
Reviewed-by: brutisso, stefank, david


# 8273:56e01852fed6 27-Apr-2015 twisti

8022853: add ability to load uncompressed object and Klass references in a compressed environment to Unsafe
Reviewed-by: coleenp, jrose, kvn


# 8194:662f01f35702 31-Mar-2015 aph

8026049: (bf) Intrinsify ByteBuffer.put{Int, Double, Float, ...} methods
Summary: Use unaligned Unsafe loads and stores for ByteBuffer access on platforms which support unaligned access. Add intrinsics for Unsafe.{get,put}-X-Unaligned methods.
Reviewed-by: dholmes, jrose, psandoz, kvn


# 7866:759a167d2381 16-Feb-2015 jwilhelm

Merge


# 7864:6a5be7f00868 13-Feb-2015 stefank

8072911: Remove includes of oop.inline.hpp from .hpp files
Reviewed-by: brutisso, coleenp, jwilhelm, simonis, dholmes


# 7841:dba0e5e29ebd 10-Feb-2015 psandoz

8068975: Remove deprecated methods on sun.misc.Unsafe and clean up native implementation
Reviewed-by: dholmes, kvn, vlivanov


# 7711:e684445431fa 15-Jan-2015 psandoz

8054494: Remove sun.misc.Unsafe.monitorEnter, monitorExit and tryMonitorEnter
Reviewed-by: dholmes, coleenp
Contributed-by: paul.sandoz@oracle.com, filipp.zhinkin@gmail.com


# 7465:674657ff61c6 03-Dec-2014 minqi

Merge


# 7462:a0dd995271c4 30-Nov-2014 coleenp

8060074: os::free() takes MemoryTrackingLevel but doesn't need it
Summary: Cleaned up unused arguments in os::free and it's callers.
Reviewed-by: lfoltan, coleenp, ctornqvi, dholmes
Contributed-by: max.ockner@oracle.com


# 7456:478aaf1a3848 25-Nov-2014 dholmes

8035663: Suspicious failure of test java/util/concurrent/Phaser/FickleRegister.java
Reviewed-by: shade, coleenp


# 7426:0f6100dde08e 17-Nov-2014 jwilhelm

Merge


# 7425:986020ea95b1 11-Nov-2014 stefank

8064581: Move INCLUDE_ALL_GCS include section to the end of the include list
Reviewed-by: jwilhelm, brutisso, coleenp, dholmes


# 7331:110ec5963eb1 29-Oct-2014 goetz

8062370: Various minor code improvements
Summary: A lot of fixes useful to improve the code quality.
Reviewed-by: coleenp, dholmes


# 6760:22b98ab2a69f 04-Jul-2014 goetz

8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
Summary: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
Reviewed-by: lfoltan, coleenp, dholmes


# 6649:01ab9db4584f 25-Jun-2014 jmasa

Merge


# 6646:b596a1063e90 04-Jun-2014 goetz

8044775: Improve usage of umbrella header atomic.inline.hpp.
Reviewed-by: stefank, kvn


# 6621:fcbb13e52461 19-Jun-2014 coleenp

6642881: Improve performance of Class.getClassLoader()
Summary: Add classLoader to java/lang/Class instance for fast access
Reviewed-by: alanb, lfoltan, rriggs, vlivanov, twisti, jfranck


# 6592:afe58d604f28 11-Jun-2014 hseigel

8031819: Remove legacy jdk checks and code
Summary: Delete old jdk specific code.
Reviewed-by: dholmes, coleenp, zgu, lfoltan


# 6475:4cc7fe54e0e1 08-May-2014 goetz

8042737: Introduce umbrella header prefetch.inline.hpp
Reviewed-by: twisti, stefank


# 6412:53a41e7cbe05 09-May-2014 drchase

8037816: Fix for 8036122 breaks build with Xcode5/clang
Summary: Repaired or selectively disabled offending formats; future-proofed with additional checking
Reviewed-by: kvn, jrose, stefank


# 6402:2377269bd73d 29-Apr-2014 goetz

8042195: Introduce umbrella header orderAccess.inline.hpp.
Reviewed-by: dholmes, kvn, stefank, twisti


# 6373:d02dbc95b60b 29-Apr-2014 anoll

8036956: remove EnableInvokeDynamic flag
Summary: The EnableInvokeDynamic flag and all support code is removed because it is not longer used in JDK 9.
Reviewed-by: kvn, twisti
Contributed-by: Tobias Hartmann <tobias.hartmann@oracle.com>


# 6019:28f281e8de1d 20-Feb-2014 kvn

Merge


# 6006:c6d7e7406136 16-Jan-2014 goetz

8029101: PPC64 (part 211): ordering of Independent Reads of Independent Writes
Reviewed-by: dholmes, kvn
Contributed-by: martin.doerr@sap.com


# 5934:e6195383bcaf 18-Feb-2014 sla

8034080: Remove the USDT1 dtrace code from Hotspot
Reviewed-by: dholmes, coleenp


# 5924:4f6bf7dd3f52 12-Feb-2014 ccheung

8028785: [parfait] warnings from b116 for hotspot.src.share.vm.prims: JNI exception pending
Summary: added JNI exception pending check in several files under src/share/vm/prims directory
Reviewed-by: coleenp, minqi


# 5349:190899198332 26-Sep-2013 hseigel

7195622: CheckUnhandledOops has limited usefulness now
Summary: Enable CHECK_UNHANDLED_OOPS in fastdebug builds across all supported platforms.
Reviewed-by: coleenp, hseigel, dholmes, stefank, twisti, ihse, rdurbin
Contributed-by: lois.foltan@oracle.com


# 4802:f2110083203d 10-Jun-2013 sla

8005849: JEP 167: Event-Based JVM Tracing
Reviewed-by: acorn, coleenp, sla
Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>


# 4796:609aad72004a 06-Jun-2013 anoll

8014246: remove assert to catch access to object headers in index_oop_from_field_offset_long
Reviewed-by: twisti, jrose


# 4632:6b388e7d4905 07-May-2013 bpittore

8013633: Cleanup platform ifdefs in unsafe.cpp
Summary: Replace ifdefs with SUPPORTS_NATIVE_CX8 set in platform include file
Reviewed-by: dholmes, dlong


# 4431:16885e702c88 25-Mar-2013 twisti

7198429: need checked categorization of caller-sensitive methods in the JDK
Reviewed-by: kvn, jrose


# 4107:db9981fd3124 23-Jan-2013 jprovino

8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
Summary: Rename INCLUDE_ALTERNATE_GCS to INCLUDE_ALL_GCS and replace SERIALGC with INCLUDE_ALL_GCS.
Reviewed-by: coleenp, stefank


# 3926:1e41b0bc58a0 18-Dec-2012 kvn

8004318: JEP-171: Support Unsafe fences intrinsics
Summary: Add three memory-ordering intrinsics to the sun.misc.Unsafe class.
Reviewed-by: twisti, kvn
Contributed-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>


# 3869:90273fc0a981 29-Nov-2012 coleenp

8000662: NPG: nashorn ant clean test262 out-of-memory with Java heap
Summary: Add ClassLoaderData object for each anonymous class with metaspaces to allocate in.
Reviewed-by: twisti, jrose, stefank


# 3843:070d523b96a7 12-Nov-2012 hseigel

8001471: Klass::cast() does nothing
Summary: Remove function Klass::cast() and calls to it.
Reviewed-by: dholmes, coleenp


# 3765:e81a8af10cd9 18-Oct-2012 kvn

8001071: Add simple range check into VM implemenation of Unsafe access methods
Summary: Add simple check in debug version of VM.
Reviewed-by: twisti, johnc


# 3707:d8ce2825b193 29-Sep-2012 coleenp

8000213: NPG: Should have renamed arrayKlass and typeArrayKlass
Summary: Capitalize these metadata types (and objArrayKlass)
Reviewed-by: stefank, twisti, kvn


# 3602:da91efe96a93 01-Sep-2012 coleenp

6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>


# 3534:1d7922586cf6 24-Jul-2012 twisti

7023639: JSR 292 method handle invocation needs a fast path for compiled code
6984705: JSR 292 method handle creation should not go through JNI
Summary: remove assembly code for JDK 7 chained method handles
Reviewed-by: jrose, twisti, kvn, mhaupt
Contributed-by: John Rose <john.r.rose@oracle.com>, Christian Thalinger <christian.thalinger@oracle.com>, Michael Haupt <michael.haupt@oracle.com>


# 3495:9c9fb30d2b3b 16-Jul-2012 kvn

Merge


# 3493:56c4f88474b3 16-Jul-2012 twisti

7087357: JSR 292: remove obsolete code after 7085860
Reviewed-by: kvn, never


# 3465:d2a62e0f25eb 28-Jun-2012 zgu

6995781: Native Memory Tracking (Phase 1)
7151532: DCmd for hotspot native memory tracking
Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd
Reviewed-by: acorn, coleenp, fparain


# 2804:12d38ffcba2a 25-Oct-2011 twisti

7094138: JSR 292: JRuby junit test fails in CallSite.setTargetNormal: obj->is_oop() failed: sanity check
Reviewed-by: iveresov, never


# 2767:436b4a3231bf 13-Oct-2011 dcubed

7098194: integrate macosx-port changes
Summary: Integrate bsd-port/hotspot and macosx-port/hotspot changes as of 2011.09.29.
Reviewed-by: kvn, dholmes, never, phh
Contributed-by: Christos Zoulas <christos@zoulas.com>, Greg Lewis <glewis@eyesbeyond.com>, Kurt Miller <kurt@intricatesoftware.com>, Alexander Strange <astrange@apple.com>, Mike Swingler <swingler@apple.com>, Roger Hoover <rhoover@apple.com>, Victor Hernandez <vhernandez@apple.com>, Pratik Solanki <psolanki@apple.com>


# 2702:e6b1331a51d2 10-Sep-2011 never

7086585: make Java field injection more flexible
Reviewed-by: jrose, twisti, kvn, coleenp


# 2666:aa67216400d3 02-Sep-2011 twisti

7085404: JSR 292: VolatileCallSites should have push notification too
Reviewed-by: never, kvn


# 2660:19241ae0d839 30-Aug-2011 never

7082263: Reflection::resolve_field/field_get/field_set are broken
Reviewed-by: kvn, dholmes, stefank, coleenp


# 2349:92add02409c9 08-Apr-2011 jmasa

Merge


# 2346:e1162778c1c8 07-Apr-2011 johnc

7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
Summary: A referent object that is only weakly reachable at the start of concurrent marking but is re-attached to the strongly reachable object graph during marking may not be marked as live. This can cause the reference object to be processed prematurely and leave dangling pointers to the referent object. Implement a read barrier for the java.lang.ref.Reference::referent field by intrinsifying the Reference.get() method, and intercepting accesses though JNI, reflection, and Unsafe, so that when a non-null referent object is read it is also logged in an SATB buffer.
Reviewed-by: kvn, iveresov, never, tonyp, dholmes


# 2263:38fea01eb669 31-Mar-2011 twisti

6817525: turn on method handle functionality by default for JSR 292
Summary: After appropriate testing, we need to turn on EnableMethodHandles and EnableInvokeDynamic by default.
Reviewed-by: never, kvn, jrose, phh


# 2223:c7f3d0b4570f 18-Mar-2011 never

7017732: move static fields into Class to prepare for perm gen removal
Reviewed-by: kvn, coleenp, twisti, stefank


# 2163:d411927672ed 23-Feb-2011 never

7012072: CompileTheWorld causes incorrect class initialization
Reviewed-by: kvn, twisti


# 2062:3582bf76420e 27-Jan-2011 coleenp

6990754: Use native memory and reference counting to implement SymbolTable
Summary: move symbols from permgen into C heap and reference count them
Reviewed-by: never, acorn, jmasa, stefank


# 1999:4fc084dac61e 07-Jan-2011 kvn

7009756: volatile variables could be broken throw reflection API
Summary: Use Atomic::load() and Atomic::store() to access a volatile long.
Reviewed-by: iveresov, jrose, dholmes, never


# 1879:f95d63e2154a 23-Nov-2010 stefank

6989984: Use standard include model for Hospot
Summary: Replaced MakeDeps and the includeDB files with more standardized solutions.
Reviewed-by: coleenp, kvn, kamg


# 1472:c18cbe5936b8 27-May-2010 trims

6941466: Oracle rebranding changes for Hotspot repositories
Summary: Change all the Sun copyrights to Oracle copyright
Reviewed-by: ohair


# 1324:e392695de029 17-Mar-2010 fparain

6935224: Adding new DTrace probes to work with Palantir
Summary: Adding probes related to thread scheduling and class initialization
Reviewed-by: kamg, never


# 845:df6caf649ff7 14-Jul-2009 ysr

6700789: G1: Enable use of compressed oops with G1 heaps
Summary: Modifications to G1 so as to allow the use of compressed oops.
Reviewed-by: apetrusenko, coleenp, jmasa, kvn, never, phh, tonyp


# 431:a45484ea312d 12-Nov-2008 jrose

6653858: dynamic languages need to be able to load anonymous classes
Summary: low-level privileged sun.misc.Unsafe.defineAnonymousClass
Reviewed-by: kvn


# 356:1ee8caae33af 21-Aug-2008 tonyp

Merge


# 342:37f87013dfd8 05-Jun-2008 ysr

6711316: Open source the Garbage-First garbage collector
Summary: First mercurial integration of the code for the Garbage-First garbage collector.
Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr


# 196:d1605aabd0a1 02-Jul-2008 xdono

6719955: Update copyright year
Summary: Update copyright year for files that have been modified in 2008
Reviewed-by: ohair, tbell


# 113:ba764ed4b6f2 13-Apr-2008 coleenp

6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Summary: Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold


# 0:a61af66fc99e 30-Nov-2007 duke

Initial load