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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 sweeping_pending_ = sweeping_pending; | 55 sweeping_pending_ = sweeping_pending; |
56 } | 56 } |
57 | 57 |
58 ~SweeperThread() { | 58 ~SweeperThread() { |
59 delete start_sweeping_semaphore_; | 59 delete start_sweeping_semaphore_; |
60 delete end_sweeping_semaphore_; | 60 delete end_sweeping_semaphore_; |
61 delete stop_semaphore_; | 61 delete stop_semaphore_; |
62 } | 62 } |
63 | 63 |
64 private: | 64 private: |
65 intptr_t StealMemory(PagedSpace* space, FreeList* free_list); | |
Michael Starzinger
2013/02/28 13:09:52
This declaration is obsolete after addressing the
Hannes Payer (out of office)
2013/02/28 14:42:34
Done.
| |
66 | |
65 Isolate* isolate_; | 67 Isolate* isolate_; |
66 Heap* heap_; | 68 Heap* heap_; |
67 MarkCompactCollector* collector_; | 69 MarkCompactCollector* collector_; |
68 Semaphore* start_sweeping_semaphore_; | 70 Semaphore* start_sweeping_semaphore_; |
69 Semaphore* end_sweeping_semaphore_; | 71 Semaphore* end_sweeping_semaphore_; |
70 Semaphore* stop_semaphore_; | 72 Semaphore* stop_semaphore_; |
71 FreeList free_list_old_data_space_; | 73 FreeList free_list_old_data_space_; |
72 FreeList free_list_old_pointer_space_; | 74 FreeList free_list_old_pointer_space_; |
73 FreeList private_free_list_old_data_space_; | 75 FreeList private_free_list_old_data_space_; |
74 FreeList private_free_list_old_pointer_space_; | 76 FreeList private_free_list_old_pointer_space_; |
75 volatile AtomicWord stop_thread_; | 77 volatile AtomicWord stop_thread_; |
76 static bool sweeping_pending_; | 78 static bool sweeping_pending_; |
77 }; | 79 }; |
78 | 80 |
79 } } // namespace v8::internal | 81 } } // namespace v8::internal |
80 | 82 |
81 #endif // V8_SWEEPER_THREAD_H_ | 83 #endif // V8_SWEEPER_THREAD_H_ |
OLD | NEW |