Mercurial > hg > truffle
changeset 15258:c846fbf318f3
fix log message stating how many GPUs have been initialized
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 22 Apr 2014 12:02:08 +0200 |
parents | 95219992be88 |
children | d90e5c22ba55 |
files | src/share/vm/runtime/gpu.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/runtime/gpu.cpp Tue Apr 22 09:32:05 2014 +0200 +++ b/src/share/vm/runtime/gpu.cpp Tue Apr 22 12:02:08 2014 +0200 @@ -32,10 +32,10 @@ void Gpu::initialized_gpu(Gpu* gpu) { // GPUs are always initialized on the same thread so no need for locking guarantee(_initialized_gpus_count < MAX_GPUS, "oob"); + _initialized_gpus[_initialized_gpus_count++] = gpu; if (TraceGPUInteraction) { - tty->print_cr("[GPU] registered initialization of %s (total initialized: %d)", gpu->name(), _initialized_gpus); + tty->print_cr("[GPU] registered initialization of %s (total initialized: %d)", gpu->name(), _initialized_gpus_count); } - _initialized_gpus[_initialized_gpus_count++] = gpu; } void Gpu::safepoint_event(SafepointEvent event) {