mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8235741: Inappropriate uses of os::javaTimeMillis()
Reviewed-by: rehn, kbarrett, egahlin, shade
This commit is contained in:
parent
d517220df6
commit
7c27f9f5dd
22 changed files with 136 additions and 104 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue