Implement EndorObject runtime operations and managed lifetimes without language types
Verify databases and deploy Aster VM / verify-and-deploy (push) Successful in 14m4s
Verify databases and deploy Aster VM / verify-and-deploy (push) Successful in 14m4s
This commit is contained in:
@@ -22,8 +22,8 @@ struct Health {
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct BootstrapInfo {
|
||||
root_class: String,
|
||||
root_has_parent: bool,
|
||||
object_model: &'static str,
|
||||
type_system: bool,
|
||||
heap_objects: usize,
|
||||
}
|
||||
|
||||
@@ -81,13 +81,9 @@ async fn health(State(state): State<AppState>) -> (StatusCode, Json<Health>) {
|
||||
}
|
||||
|
||||
async fn bootstrap(State(state): State<AppState>) -> Json<BootstrapInfo> {
|
||||
let root = state
|
||||
.vm
|
||||
.class(state.vm.root_class())
|
||||
.expect("VM construction guarantees a root class");
|
||||
Json(BootstrapInfo {
|
||||
root_class: root.name().into(),
|
||||
root_has_parent: root.parent().is_some(),
|
||||
object_model: "EndorObject",
|
||||
type_system: false,
|
||||
heap_objects: state.vm.object_count(),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user