Skip to content

Commit

Permalink
Adding missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
neethu-prasad committed Jul 22, 2024
1 parent 0714e40 commit 57dbb70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/gc/shared/gcLocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "runtime/javaThread.inline.hpp"
#include "runtime/safepoint.hpp"
#include "runtime/threadSMR.hpp"
#include "runtime/timer.hpp"

volatile jint GCLocker::_jni_lock_count = 0;
volatile bool GCLocker::_needs_gc = false;
Expand Down Expand Up @@ -88,7 +89,7 @@ void GCLocker::log_debug_jni(const char* msg) {
}
}

void GCLocker::log_debug_jni(const char* msg, elapsedTimer elapsed_timer) {
void GCLocker::log_debug_jni(const char* msg, const elapsedTimer elapsed_timer) {
Log(gc, jni) log;
if (log.is_debug()) {
ResourceMark rm; // JavaThread::name() allocates to convert to UTF8
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/gc/shared/gcLocker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "memory/allStatic.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/macros.hpp"
#include "runtime/timer.hpp"

class JavaThread;

Expand Down

0 comments on commit 57dbb70

Please sign in to comment.