Unused member field/dead code in hotspot/logging/log.hpp?

Srinivas Ramakrishna ysr1729 at gmail.com
Mon Mar 18 23:37:20 UTC 2019


Hello all,

I was making some modifications to unified logging for optionally making it
async -- basically porting some of our JDK 8
code changes over to OpenJDK 11's Unified Logging framework, and I noticed
that in log.hpp there appears to be an unused
static member in class LogImpl:

class LogImpl {
 private:
  static const size_t LogBufferSize = 512;

It doesn't seem to be used anywhere, at least in the OpenJDK 11 vintage I
am looking at.

Is it used elsewhere in code not visible in OpenJDK, or can it be deleted?

(PS: please let me know if this question shd go to some other more specific
email list.)

thanks,
-- ramki
   // TwitterVMTeam // openjdk: ysr


More information about the hotspot-dev mailing list