RFR: 8200105: Remove cyclic dependency between oop.inline.hpp and collectedHeap.inline.hpp (original) (raw)
Stefan Karlsson stefan.karlsson at oracle.com
Thu Mar 22 18:53:34 UTC 2018
- Previous message: RFR: 8200105: Remove cyclic dependency between oop.inline.hpp and collectedHeap.inline.hpp
- Next message: RFR: 8200106: Move NoSafepointVerifier out from gcLocker.hpp
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2018-03-22 19:44, Kim Barrett wrote:
On Mar 22, 2018, at 12:10 PM, Stefan Karlsson <stefan.karlsson at oracle.com> wrote:
Hi all, Please review this patch to remove a cyclic dependency between oop.inline.hpp and collectedHeap.inline.hpp: http://cr.openjdk.java.net/~stefank/8200105/webrev.01/ https://bugs.openjdk.java.net/browse/JDK-8200105 The ground work for this cleanup had already been done with: 8199728: Remove oopDesc::isscavengable What's done in this trivial patch is: 1) Move some debug functions out from the collectedHeap.inline.hpp and into collectedHeap.hpp. 2) Removed collectedHeap.inline.hpp and fixed missing includes to make it compile again. Thanks, StefanK Very nice cleanup. I assume you will update copyrights. Looks good.
Thanks, I'll update the copyrights.
------------------------------------------------------------------------------ src/hotspot/share/oops/oop.inline.hpp I think this file nearly doesn't need to include collectedHeap.hpp at all; not having that dependency would be nice. The only use I see is in an assert in oopDesc::sizegivenklass that uses Universe::heap(). Doing anything about this is likely pulling on a lot more string though, so I wouldn't want it added to this change. So file a new RFE if you think eliminating the dependency is worthwhile.
I thought about that, but didn't do it. Yes, it would probably be good to do what you suggest.
------------------------------------------------------------------------------ src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp There seems to be a stray blank line removal after line 186.
Thanks for catching that.
StefanK
------------------------------------------------------------------------------
- Previous message: RFR: 8200105: Remove cyclic dependency between oop.inline.hpp and collectedHeap.inline.hpp
- Next message: RFR: 8200106: Move NoSafepointVerifier out from gcLocker.hpp
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]