8167425: Redundant code in method PerfLongVariant::sample
Reviewed-by: dholmes, coleenp, sspitsyn
This commit is contained in:
parent
8838ae7b46
commit
6ed6fd7a3f
@ -213,18 +213,9 @@ PerfLongVariant::PerfLongVariant(CounterNS ns, const char* namep, Units u,
|
||||
}
|
||||
|
||||
void PerfLongVariant::sample() {
|
||||
|
||||
// JJJ - This should not happen. Maybe the first sample is taken
|
||||
// while the _sample_helper is being null'ed out.
|
||||
// assert(_sample_helper != NULL || _sampled != NULL, "unexpected state");
|
||||
if (_sample_helper == NULL) return;
|
||||
|
||||
if (_sample_helper != NULL) {
|
||||
*(jlong*)_valuep = _sample_helper->take_sample();
|
||||
}
|
||||
else if (_sampled != NULL) {
|
||||
*(jlong*)_valuep = *_sampled;
|
||||
}
|
||||
}
|
||||
|
||||
PerfByteArray::PerfByteArray(CounterNS ns, const char* namep, Units u,
|
||||
|
Loading…
Reference in New Issue
Block a user