Skip to content

Commit

Permalink
StrictProvenance: deorbit metadata mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
nwf-msr committed Dec 14, 2022
1 parent de465d9 commit 5e130c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 98 deletions.
85 changes: 0 additions & 85 deletions src/snmalloc/backend_helpers/cheri_slabmetadata_mixin.h

This file was deleted.

15 changes: 2 additions & 13 deletions src/snmalloc/backend_helpers/defaultpagemapentry.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include "../mem/mem.h"
#include "cheri_slabmetadata_mixin.h"

namespace snmalloc
{
Expand Down Expand Up @@ -65,19 +64,9 @@ namespace snmalloc
SNMALLOC_FAST_PATH DefaultPagemapEntryT() = default;
};

class StrictProvenanceSlabMetadata
: public StrictProvenanceSlabMetadataMixin<
FrontendSlabMetadata<StrictProvenanceSlabMetadata>>
class DefaultSlabMetadata : public FrontendSlabMetadata<DefaultSlabMetadata>
{};

class LaxProvenanceSlabMetadata
: public LaxProvenanceSlabMetadataMixin<
FrontendSlabMetadata<LaxProvenanceSlabMetadata>>
{};

using DefaultPagemapEntry = DefaultPagemapEntryT<std::conditional_t<
backend_strict_provenance,
StrictProvenanceSlabMetadata,
LaxProvenanceSlabMetadata>>;
using DefaultPagemapEntry = DefaultPagemapEntryT<DefaultSlabMetadata>;

} // namespace snmalloc

0 comments on commit 5e130c6

Please sign in to comment.