Reorder declarations to separate interface from implementation.

This commit is contained in:
Nikolay Igotti
2019-06-24 17:26:07 +03:00
committed by Nikolay Igotti
parent b8ea28cea8
commit e841798c47
4 changed files with 1346 additions and 1364 deletions
+1
View File
@@ -59,6 +59,7 @@ void RUNTIME_NORETURN ThrowIllegalStateException();
void RUNTIME_NORETURN ThrowInvalidMutabilityException(KConstRef where);
void RUNTIME_NORETURN ThrowIncorrectDereferenceException();
void RUNTIME_NORETURN ThrowIllegalObjectSharingException(KConstNativePtr typeInfo, KConstNativePtr address);
void RUNTIME_NORETURN ThrowFreezingException(KRef toFreeze, KRef blocker);
// Prints out message of Throwable.
void PrintThrowable(KRef);
File diff suppressed because it is too large Load Diff
-2
View File
@@ -485,8 +485,6 @@ OBJ_GETTER(ReadHeapRefLocked, ObjHeader** location, int32_t* spinlock) RUNTIME_N
void EnterFrame(ObjHeader** start, int parameters, int count) RUNTIME_NOTHROW;
// Called on frame leave, if it has object slots.
void LeaveFrame(ObjHeader** start, int parameters, int count) RUNTIME_NOTHROW;
// Collect garbage, which cannot be found by reference counting (cycles).
void GarbageCollect() RUNTIME_NOTHROW;
// Clears object subgraph references from memory subsystem, and optionally
// checks if subgraph referenced by given root is disjoint from the rest of
// object graph, i.e. no external references exists.
+5
View File
@@ -19,7 +19,12 @@
#include "Memory.h"
extern "C" {
void AddRefFromAssociatedObject(const ObjHeader* object) RUNTIME_NOTHROW;
void ReleaseRefFromAssociatedObject(const ObjHeader* object) RUNTIME_NOTHROW;
void Kotlin_ObjCExport_releaseAssociatedObject(void* associatedObject);
} // extern "C"
#endif // RUNTIME_MEMORYPRIVATE_HPP