comparison src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp @ 18041:52b4284cb496

Merge with jdk8u20-b26
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 16:02:50 +0200
parents 4ca6dc0799b6 78bbf4d43a14
children
comparison
equal deleted inserted replaced
17606:45d7b2c7029d 18041:52b4284cb496
1 /* 1 /*
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
257 SIZE_FORMAT 257 SIZE_FORMAT
258 ", requested_survivor_size: " SIZE_FORMAT ")", 258 ", requested_survivor_size: " SIZE_FORMAT ")",
259 requested_eden_size, requested_survivor_size); 259 requested_eden_size, requested_survivor_size);
260 gclog_or_tty->print_cr(" eden: [" PTR_FORMAT ".." PTR_FORMAT ") " 260 gclog_or_tty->print_cr(" eden: [" PTR_FORMAT ".." PTR_FORMAT ") "
261 SIZE_FORMAT, 261 SIZE_FORMAT,
262 eden()->bottom(), 262 p2i(eden()->bottom()),
263 eden()->end(), 263 p2i(eden()->end()),
264 pointer_delta(eden()->end(), 264 pointer_delta(eden()->end(),
265 eden()->bottom(), 265 eden()->bottom(),
266 sizeof(char))); 266 sizeof(char)));
267 gclog_or_tty->print_cr(" from: [" PTR_FORMAT ".." PTR_FORMAT ") " 267 gclog_or_tty->print_cr(" from: [" PTR_FORMAT ".." PTR_FORMAT ") "
268 SIZE_FORMAT, 268 SIZE_FORMAT,
269 from()->bottom(), 269 p2i(from()->bottom()),
270 from()->end(), 270 p2i(from()->end()),
271 pointer_delta(from()->end(), 271 pointer_delta(from()->end(),
272 from()->bottom(), 272 from()->bottom(),
273 sizeof(char))); 273 sizeof(char)));
274 gclog_or_tty->print_cr(" to: [" PTR_FORMAT ".." PTR_FORMAT ") " 274 gclog_or_tty->print_cr(" to: [" PTR_FORMAT ".." PTR_FORMAT ") "
275 SIZE_FORMAT, 275 SIZE_FORMAT,
276 to()->bottom(), 276 p2i(to()->bottom()),
277 to()->end(), 277 p2i(to()->end()),
278 pointer_delta( to()->end(), 278 pointer_delta( to()->end(),
279 to()->bottom(), 279 to()->bottom(),
280 sizeof(char))); 280 sizeof(char)));
281 } 281 }
282 282
380 guarantee(to_start != to_end, "to space is zero sized"); 380 guarantee(to_start != to_end, "to space is zero sized");
381 381
382 if (PrintAdaptiveSizePolicy && Verbose) { 382 if (PrintAdaptiveSizePolicy && Verbose) {
383 gclog_or_tty->print_cr(" [eden_start .. eden_end): " 383 gclog_or_tty->print_cr(" [eden_start .. eden_end): "
384 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT, 384 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT,
385 eden_start, 385 p2i(eden_start),
386 eden_end, 386 p2i(eden_end),
387 pointer_delta(eden_end, eden_start, sizeof(char))); 387 pointer_delta(eden_end, eden_start, sizeof(char)));
388 gclog_or_tty->print_cr(" [from_start .. from_end): " 388 gclog_or_tty->print_cr(" [from_start .. from_end): "
389 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT, 389 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT,
390 from_start, 390 p2i(from_start),
391 from_end, 391 p2i(from_end),
392 pointer_delta(from_end, from_start, sizeof(char))); 392 pointer_delta(from_end, from_start, sizeof(char)));
393 gclog_or_tty->print_cr(" [ to_start .. to_end): " 393 gclog_or_tty->print_cr(" [ to_start .. to_end): "
394 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT, 394 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT,
395 to_start, 395 p2i(to_start),
396 to_end, 396 p2i(to_end),
397 pointer_delta( to_end, to_start, sizeof(char))); 397 pointer_delta( to_end, to_start, sizeof(char)));
398 } 398 }
399 } else { 399 } else {
400 // Eden, to, from 400 // Eden, to, from
401 if (PrintAdaptiveSizePolicy && Verbose) { 401 if (PrintAdaptiveSizePolicy && Verbose) {
471 471
472 assert(to_start >= eden_end, "to-space should be above eden"); 472 assert(to_start >= eden_end, "to-space should be above eden");
473 if (PrintAdaptiveSizePolicy && Verbose) { 473 if (PrintAdaptiveSizePolicy && Verbose) {
474 gclog_or_tty->print_cr(" [eden_start .. eden_end): " 474 gclog_or_tty->print_cr(" [eden_start .. eden_end): "
475 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT, 475 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT,
476 eden_start, 476 p2i(eden_start),
477 eden_end, 477 p2i(eden_end),
478 pointer_delta(eden_end, eden_start, sizeof(char))); 478 pointer_delta(eden_end, eden_start, sizeof(char)));
479 gclog_or_tty->print_cr(" [ to_start .. to_end): " 479 gclog_or_tty->print_cr(" [ to_start .. to_end): "
480 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT, 480 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT,
481 to_start, 481 p2i(to_start),
482 to_end, 482 p2i(to_end),
483 pointer_delta( to_end, to_start, sizeof(char))); 483 pointer_delta( to_end, to_start, sizeof(char)));
484 gclog_or_tty->print_cr(" [from_start .. from_end): " 484 gclog_or_tty->print_cr(" [from_start .. from_end): "
485 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT, 485 "[" PTR_FORMAT " .. " PTR_FORMAT ") " SIZE_FORMAT,
486 from_start, 486 p2i(from_start),
487 from_end, 487 p2i(from_end),
488 pointer_delta(from_end, from_start, sizeof(char))); 488 pointer_delta(from_end, from_start, sizeof(char)));
489 } 489 }
490 } 490 }
491 491
492 492