8235741: Inappropriate uses of os::javaTimeMillis()

Reviewed-by: rehn, kbarrett, egahlin, shade
This commit is contained in:
David Holmes 2020-01-17 00:52:10 -05:00
parent d517220df6
commit 7c27f9f5dd
22 changed files with 136 additions and 104 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -136,7 +136,7 @@ class VM_Operation : public StackObj {
private:
Thread* _calling_thread;
long _timestamp;
uint64_t _timestamp;
VM_Operation* _next;
VM_Operation* _prev;
@ -150,8 +150,8 @@ class VM_Operation : public StackObj {
Thread* calling_thread() const { return _calling_thread; }
void set_calling_thread(Thread* thread);
long timestamp() const { return _timestamp; }
void set_timestamp(long timestamp) { _timestamp = timestamp; }
uint64_t timestamp() const { return _timestamp; }
void set_timestamp(uint64_t timestamp) { _timestamp = timestamp; }
// Called by VM thread - does in turn invoke doit(). Do not override this
void evaluate();