8129419: heapDumper.cpp: assert(length_in_bytes > 0) failed: nothing to copy

Reviewed-by: dsamersoff
This commit is contained in:
Andreas Eriksson 2016-01-19 10:02:22 +01:00
parent 4651887649
commit 7366cfb6d2
2 changed files with 52 additions and 55 deletions

View file

@ -5667,8 +5667,6 @@ bool os::is_headless_jre() {
size_t os::write(int fd, const void *buf, unsigned int nBytes) {
size_t res;
assert(((JavaThread*)Thread::current())->thread_state() == _thread_in_native,
"Assumed _thread_in_native");
RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res);
return res;
}