| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 FLAG_concurrent_recompilation = false; | 499 FLAG_concurrent_recompilation = false; |
| 500 | 500 |
| 501 // Only Linux has the proc filesystem and only if it is mapped. If it's not | 501 // Only Linux has the proc filesystem and only if it is mapped. If it's not |
| 502 // there we just skip the test. | 502 // there we just skip the test. |
| 503 if (initial_memory >= 0) { | 503 if (initial_memory >= 0) { |
| 504 CcTest::InitializeVM(); | 504 CcTest::InitializeVM(); |
| 505 intptr_t delta = MemoryInUse() - initial_memory; | 505 intptr_t delta = MemoryInUse() - initial_memory; |
| 506 printf("delta: %" V8_PTR_PREFIX "d kB\n", delta / 1024); | 506 printf("delta: %" V8_PTR_PREFIX "d kB\n", delta / 1024); |
| 507 if (sizeof(initial_memory) == 8) { // 64-bit. | 507 if (sizeof(initial_memory) == 8) { // 64-bit. |
| 508 if (v8::internal::Snapshot::IsEnabled()) { | 508 if (v8::internal::Snapshot::IsEnabled()) { |
| 509 CHECK_LE(delta, 4000 * 1024); | 509 CHECK_LE(delta, 4100 * 1024); |
| 510 } else { | 510 } else { |
| 511 CHECK_LE(delta, 4500 * 1024); | 511 CHECK_LE(delta, 4600 * 1024); |
| 512 } | 512 } |
| 513 } else { // 32-bit. | 513 } else { // 32-bit. |
| 514 if (v8::internal::Snapshot::IsEnabled()) { | 514 if (v8::internal::Snapshot::IsEnabled()) { |
| 515 CHECK_LE(delta, 3100 * 1024); | 515 CHECK_LE(delta, 3100 * 1024); |
| 516 } else { | 516 } else { |
| 517 CHECK_LE(delta, 3450 * 1024); | 517 CHECK_LE(delta, 3450 * 1024); |
| 518 } | 518 } |
| 519 } | 519 } |
| 520 } | 520 } |
| 521 } | 521 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 535 | 535 |
| 536 | 536 |
| 537 TEST(RegressJoinThreadsOnIsolateDeinit) { | 537 TEST(RegressJoinThreadsOnIsolateDeinit) { |
| 538 intptr_t size_limit = ShortLivingIsolate() * 2; | 538 intptr_t size_limit = ShortLivingIsolate() * 2; |
| 539 for (int i = 0; i < 10; i++) { | 539 for (int i = 0; i < 10; i++) { |
| 540 CHECK_GT(size_limit, ShortLivingIsolate()); | 540 CHECK_GT(size_limit, ShortLivingIsolate()); |
| 541 } | 541 } |
| 542 } | 542 } |
| 543 | 543 |
| 544 #endif // __linux__ and !USE_SIMULATOR | 544 #endif // __linux__ and !USE_SIMULATOR |
| OLD | NEW |