< prev index next >
src/share/vm/gc/parallel/gcTaskThread.hpp
Print this page
rev 12781 : imported patch 8177963-gctasktimestampentries
rev 12782 : [mq]: 8177963-gctasktimestampentries-reviews
*** 1,7 ****
/*
! * Copyright (c) 2002, 2016, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2002, 2017, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 43,53 ****
GCTaskTimeStamp* _time_stamps;
uint _time_stamp_index;
GCTaskTimeStamp* time_stamp_at(uint index);
! void add_task_timestamp(char* name, jlong t_entry, jlong t_exit);
bool _is_working; // True if participating in GC tasks
// Factory create and destroy methods.
static GCTaskThread* create(GCTaskManager* manager,
--- 43,53 ----
GCTaskTimeStamp* _time_stamps;
uint _time_stamp_index;
GCTaskTimeStamp* time_stamp_at(uint index);
! void add_task_timestamp(const char* name, jlong t_entry, jlong t_exit);
bool _is_working; // True if participating in GC tasks
// Factory create and destroy methods.
static GCTaskThread* create(GCTaskManager* manager,
*** 91,108 ****
class GCTaskTimeStamp : public CHeapObj<mtGC>
{
private:
jlong _entry_time;
jlong _exit_time;
! char* _name;
public:
jlong entry_time() { return _entry_time; }
jlong exit_time() { return _exit_time; }
! const char* name() const { return (const char*)_name; }
void set_entry_time(jlong time) { _entry_time = time; }
void set_exit_time(jlong time) { _exit_time = time; }
! void set_name(char* name) { _name = name; }
};
#endif // SHARE_VM_GC_PARALLEL_GCTASKTHREAD_HPP
--- 91,108 ----
class GCTaskTimeStamp : public CHeapObj<mtGC>
{
private:
jlong _entry_time;
jlong _exit_time;
! const char* _name;
public:
jlong entry_time() { return _entry_time; }
jlong exit_time() { return _exit_time; }
! const char* name() const { return _name; }
void set_entry_time(jlong time) { _entry_time = time; }
void set_exit_time(jlong time) { _exit_time = time; }
! void set_name(const char* name) { _name = name; }
};
#endif // SHARE_VM_GC_PARALLEL_GCTASKTHREAD_HPP
< prev index next >