[K/N] fix minor typos and outdated documentation

This commit is contained in:
Johan Bay
2022-06-13 14:15:22 +02:00
committed by SvyatoslavScherbina
parent 059ffe7a9b
commit e380d7d495
3 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -140,9 +140,9 @@ To run Kotlin/Native target-specific tests use (takes time):
To run runtime unit tests on the host machine for both mimalloc and the standard allocator:
./gradlew :kotlin-native:hostRuntimeTests
./gradlew :kotlin-native:runtime:hostRuntimeTests
To run tests for only one of these two allocators, run `:kotlin-native:hostStdAllocRuntimeTests` or `:kotlin-native:hostMimallocRuntimeTests`.
To run tests for only one of these two allocators, run `:kotlin-native:runtime:hostStdAllocRuntimeTests` or `:kotlin-native:runtime:hostMimallocRuntimeTests`.
We use [Google Test](https://github.com/google/googletest) to execute the runtime unit tests. The build automatically fetches
the specified Google Test revision to `kotlin-native/runtime/googletest`. It is possible to manually modify the downloaded GTest sources for debug
@@ -150,11 +150,11 @@ purposes; the build will not overwrite them by default.
To forcibly redownload Google Test when running tests, use the corresponding project property:
./gradlew :kotlin-native:hostRuntimeTests -Prefresh-gtest
./gradlew :kotlin-native:runtime:hostRuntimeTests -Prefresh-gtest
or run the `downloadGTest` task directly with the `--refresh` CLI key:
or run the `downloadGoogleTest` task directly with the `--refresh` CLI key:
./gradlew :kotlin-native:downloadGTest --refresh
./gradlew :kotlin-native:downloadGoogleTest --refresh
To use a local GTest copy instead of the downloaded one, add the following line to `kotlin-native/runtime/build.gradle.kts`:
+1 -1
View File
@@ -170,7 +170,7 @@ void ClearMemoryForTests(MemoryState*);
// Arena containers are not reference counted, and is explicitly freed when leaving
// its owner frame.
// Escape analysis algorithm is the provider of information for decision on exact aux slot
// selection, and comes from upper bound esteemation of object lifetime.
// selection, and comes from upper bound estimation of object lifetime.
//
OBJ_GETTER(AllocInstance, const TypeInfo* type_info) RUNTIME_NOTHROW;
+1 -1
View File
@@ -56,7 +56,7 @@ protected:
~Pinned() = default;
};
// A helper that scopley assings a value to a variable. The variable will
// A helper that scopley assigns a value to a variable. The variable will
// be set to its original value upon destruction of the AutoReset instance.
// Note that an AutoReset instance must have a shorter lifetime than
// the variable it works with to avoid invalid memory access.