JDK-8252981 : ObjectMonitor::object() cleanup changes extracted from JDK-8247281
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-09-09
  • Updated: 2020-09-21
  • Resolved: 2020-09-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b16Fixed
Description
This sub-task is tracking ObjectMonitor::object() cleanup changes
extracted from Erik's work on JDK-8247281. This extraction is done
to ease the code review for the JDK-8247281 changes. 

Here's the core cleanup:

diff -r fd7f6a424cd1 src/hotspot/share/runtime/objectMonitor.hpp
--- a/src/hotspot/share/runtime/objectMonitor.hpp       Fri Aug 28 16:43:09 2020 -0400
+++ b/src/hotspot/share/runtime/objectMonitor.hpp       Wed Sep 02 17:22:56 2020 -0400
@@ -328,9 +328,9 @@

  public:

-  void*     object() const;
-  void*     object_addr();
-  void      set_object(void* obj);
+  oop       object() const;
+  oop*      object_addr();
+  void      set_object(oop obj);
   void      release_set_allocation_state(AllocationState s);
   void      set_allocation_state(AllocationState s);
   AllocationState allocation_state() const;

and those type changes ripple into the other files.
Comments
Changeset: e7a1b9bf Author: Daniel D. Daugherty <dcubed@openjdk.org> Date: 2020-09-11 13:35:34 +0000 URL: https://git.openjdk.java.net/jdk/commit/e7a1b9bf
11-09-2020