Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
LizBing committed Dec 19, 2022
1 parent ab92ce7 commit 5d9ebc5
Show file tree
Hide file tree
Showing 51 changed files with 451 additions and 15 deletions.
9 changes: 9 additions & 0 deletions src/os/mman.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file mman.h
* @author Lizbing (lizbing@relight.com)
* @brief system memory management extension
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_EXT_MMAN_
#define UBOA_GC_EXT_MMAN_

Expand Down
8 changes: 8 additions & 0 deletions src/os/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file stdafx.h
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_OS_EXT_STDAFX_
#define UBOA_GC_OS_EXT_STDAFX_

Expand Down
13 changes: 11 additions & 2 deletions src/os/thread.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#ifndef ROSA_EXT_THREAD_
#define ROSA_EXT_THREAD_
/**
* @file thread.h
* @author Lizbing (lizbing@relight.com)
* @brief system thread extension
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_EXT_THREAD_
#define UBOA_EXT_THREAD_

#include "stdafx.h"

Expand Down
9 changes: 9 additions & 0 deletions src/os/time.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file time.h
* @author Lizbing (lizbing@relight.com)
* @brief timer
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_EXT_TIMER_
#define UBOA_GC_EXT_TIMER_

Expand Down
8 changes: 8 additions & 0 deletions src/share/address.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file address.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "runtime.h"
#include "address.h"
#include "globals.h"
Expand Down
9 changes: 9 additions & 0 deletions src/share/address.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file address.h
* @author Lizbing (lizbing@relight.com)
* @brief Decoding the pointers.
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_POINTER_
#define UBOA_GC_POINTER_

Expand Down
8 changes: 8 additions & 0 deletions src/share/allocator.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file allocator.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "allocator.h"
#include "appThrd.h"
#include "vm.h"
Expand Down
9 changes: 9 additions & 0 deletions src/share/allocator.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file allocator.h
* @author Lizbing (lizbing@relight.com)
* @brief The allocator.
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_ALLOCATOR_
#define UBOA_GC_ALLOCATOR_

Expand Down
8 changes: 8 additions & 0 deletions src/share/appThrd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file appThrd.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "appThrd.h"

static atomic_flag sl = ATOMIC_FLAG_INIT;
Expand Down
9 changes: 9 additions & 0 deletions src/share/appThrd.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file appThrd.h
* @author Lizbing (lizbing@relight.com)
* @brief The application thread management
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_APPLICATIONTHREAD_
#define UBOA_GC_APPLICATIONTHREAD_

Expand Down
8 changes: 8 additions & 0 deletions src/share/barrier.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file barrier.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "barrier.h"
#include "runtime.h"
#include "address.h"
Expand Down
9 changes: 9 additions & 0 deletions src/share/barrier.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file barrier.h
* @author Lizbing (lizbing@relight.com)
* @brief The load value barrier(AKA read barrier).
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_BARRIER_
#define UBOA_GC_BARRIER_

Expand Down
9 changes: 0 additions & 9 deletions src/share/cleanUp.h

This file was deleted.

8 changes: 8 additions & 0 deletions src/share/director.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file director.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "director.h"
#include "runtime.h"
#include "globals.h"
Expand Down
9 changes: 9 additions & 0 deletions src/share/director.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file director.h
* @author Lizbing (lizbing@relight.com)
* @brief The director of GC.
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_DIRECTOR_
#define UBOA_GC_DIRECTOR_

Expand Down
10 changes: 9 additions & 1 deletion src/share/driver.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file driver.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "driver.h"
#include "globals.h"
#include "runtime.h"
Expand All @@ -7,7 +15,7 @@
#include "gclog.h"

#include "mark.h"
#include "cleanUp.h"
#include "prepare.h"
#include "relocate.h"

#include "director.h"
Expand Down
9 changes: 9 additions & 0 deletions src/share/driver.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file driver.h
* @author Lizbing (lizbing@relight.com)
* @brief The driver of GC.
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_DRIVER_
#define UBOA_GC_DRIVER_

Expand Down
8 changes: 8 additions & 0 deletions src/share/forwarding.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file forwarding.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "forwarding.h"
#include "address.h"
#include "page.h"
Expand Down
9 changes: 9 additions & 0 deletions src/share/forwarding.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file forwarding.h
* @author Lizbing (lizbing@relight.com)
* @brief Records the forwarding information.
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_FORWARDING_
#define UBOA_GC_FORWARDING_

Expand Down
8 changes: 8 additions & 0 deletions src/share/gclog.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file gclog.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "gclog.h"
#include "../util/queue.h"

Expand Down
9 changes: 9 additions & 0 deletions src/share/gclog.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file gclog.h
* @author Lizbing (lizbing@relight.com)
* @brief GC logout
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_DEBUG_
#define UBOA_GC_DEBUG_

Expand Down
9 changes: 9 additions & 0 deletions src/share/globals.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file globals.h
* @author Lizbing (lizbing@relight.com)
* @brief Some global definitions
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_GLOBALS_
#define UBOA_GC_GLOBALS_

Expand Down
8 changes: 8 additions & 0 deletions src/share/mark.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file mark.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "mark.h"
#include "forwarding.h"
#include "globals.h"
Expand Down
9 changes: 9 additions & 0 deletions src/share/mark.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file mark.h
* @author Lizbing (lizbing@relight.com)
* @brief The mark phase.
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_MARKPHASE_
#define UBOA_GC_MARKPHASE_

Expand Down
9 changes: 9 additions & 0 deletions src/share/object.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file object.h
* @author Lizbing (lizbing@relight.com)
* @brief stores the objects' information
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_OBJECT_
#define UBOA_GC_OBJECT_

Expand Down
8 changes: 8 additions & 0 deletions src/share/oop.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file oop.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "oop.h"
#include "object.h"

Expand Down
9 changes: 9 additions & 0 deletions src/share/oop.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file oop.h
* @author Lizbing (lizbing@relight.com)
* @brief OOP maps for objects
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_OOP_
#define UBOA_GC_OOP_

Expand Down
9 changes: 9 additions & 0 deletions src/share/operate.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file operate.c
* @author Lizbing (lizbing@relight.com)
* @brief user operations
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "barrier.h"

static const intptr_t null = 0;
Expand Down
8 changes: 8 additions & 0 deletions src/share/page.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file page.c
* @author Lizbing (lizbing@relight.com)
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#include "page.h"
#include "vm.h"
#include "globals.h"
Expand Down
9 changes: 9 additions & 0 deletions src/share/page.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @file page.h
* @author Lizbing (lizbing@relight.com)
* @brief page management
*
* @copyright Copyright (c) 2022. All rights reserved.
*
*/

#ifndef UBOA_GC_PAGE_
#define UBOA_GC_PAGE_

Expand Down
Loading

0 comments on commit 5d9ebc5

Please sign in to comment.