Still making progress. Dropped the archive because it was causing problems.
This commit is contained in:
parent
eed4711fee
commit
8d2acbeb0f
97 changed files with 490 additions and 13322 deletions
|
|
@ -58,9 +58,9 @@ struct pso_pointer initialise_memory( uint32_t node ) {
|
|||
struct pso_pointer result = nil;
|
||||
if ( memory_initialised ) {
|
||||
result =
|
||||
make_exception( c_string_to_lisp_string
|
||||
( L"Attenpt to reinitialise memory." ), nil, nil,
|
||||
nil );
|
||||
make_exception( make_frame( 1, nil, c_string_to_lisp_string
|
||||
( nil,
|
||||
L"Attenpt to reinitialise memory." ) ) );
|
||||
} else {
|
||||
for ( uint8_t i = 0; i <= MAX_SIZE_CLASS; i++ ) {
|
||||
freelists[i] = nil;
|
||||
|
|
@ -82,18 +82,18 @@ struct pso_pointer pop_freelist( uint8_t size_class ) {
|
|||
struct pso_pointer result = t;
|
||||
|
||||
if ( size_class <= MAX_SIZE_CLASS ) {
|
||||
if ( nilp( freelists[size_class] ) ) {
|
||||
if ( c_nilp( freelists[size_class] ) ) {
|
||||
result = allocate_page( size_class );
|
||||
}
|
||||
|
||||
if ( nilp( result ) ) {
|
||||
if ( c_nilp( result ) ) {
|
||||
fputws( L"FATAL: Page space exhausted\n", stderr );
|
||||
exit( 1 ); // TODO: we don't want to do this! Somehow, we need to
|
||||
// recover a workable environment, ideally by throwing a pre-made
|
||||
// exception.
|
||||
}
|
||||
|
||||
if ( !exceptionp( result ) && !nilp( result ) ) {
|
||||
if ( !exceptionp( result ) && !c_nilp( result ) ) {
|
||||
pthread_mutex_lock( &freelists_mutices[size_class] );
|
||||
result = freelists[size_class];
|
||||
struct pso2 *object = pointer_to_object( result );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue