Changeset 3b8acfb for libcfa/src
- Timestamp:
- Aug 13, 2021, 5:29:44 PM (5 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- e3984a68
- Parents:
- be497c6 (diff), c9f9d4f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- libcfa/src
- Files:
-
- 3 edited
-
concurrency/kernel/startup.cfa (modified) (2 diffs)
-
concurrency/thread.cfa (modified) (1 diff)
-
heap.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
rbe497c6 r3b8acfb 235 235 236 236 register_tls( mainProcessor ); 237 mainThread->last_cpu = __kernel_getcpu(); 237 238 238 239 //initialize the global state variables … … 478 479 state = Start; 479 480 self_cor{ info }; 480 last_cpu = __kernel_getcpu();481 481 curr_cor = &self_cor; 482 482 curr_cluster = mainCluster; -
libcfa/src/concurrency/thread.cfa
rbe497c6 r3b8acfb 34 34 preempted = __NO_PREEMPTION; 35 35 corctx_flag = false; 36 disable_interrupts(); 36 37 last_cpu = __kernel_getcpu(); 38 enable_interrupts(); 37 39 curr_cor = &self_cor; 38 40 self_mon.owner = &this; -
libcfa/src/heap.cfa
rbe497c6 r3b8acfb 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat May 22 08:46:39202113 // Update Count : 10 3612 // Last Modified On : Mon Aug 9 19:03:02 2021 13 // Update Count : 1040 14 14 // 15 15 … … 102 102 } // prtUnfreed 103 103 104 extern int cfa_main_returned; // from bootloader.cf 104 105 extern "C" { 105 106 void heapAppStart() { // called by __cfaabi_appready_startup … … 109 110 void heapAppStop() { // called by __cfaabi_appready_startdown 110 111 fclose( stdin ); fclose( stdout ); 111 prtUnfreed();112 if ( cfa_main_returned ) prtUnfreed(); // do not check unfreed storage if exit called 112 113 } // heapAppStop 113 114 } // extern "C"
Note:
See TracChangeset
for help on using the changeset viewer.