首页 \ 问答 \ G1 GC中的内存分配(Memory allocation in G1 GC)

G1 GC中的内存分配(Memory allocation in G1 GC)

据我所知,当使用G1时,GC会被分割成一组大小相等的堆区域。
JVM如何在区域中分配新对象? 选择哪个区域进行分配?


As I understand when using G1 GC heap is partitioned into a set of equal-sized heap regions.
How JVM allocates new objects in the regions? Which region is choosed for the allocation?


原文:https://stackoverflow.com/questions/19820443
更新时间:2023-03-15 17:03

最满意答案

你只需要在这个元素<ion-list>上给出no-lines关于它的医生

像这样: 工作Plunker

<ion-list no-lines>

  <ion-item>
    <ion-label fixed>Username</ion-label>
    <ion-input type="text"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label fixed>Password</ion-label>
    <ion-input type="password"></ion-input>
  </ion-item>

</ion-list>

如果您需要了解如何在Ionic2上更改默认值,我强烈建议您阅读本文。 Ionic 2应用程序样式指南

如果您在页面组件中使用如下所示的样式,则无需使用!import hack。 像这样使用.ios,.md

login.scss

 .ios,
    .md {
        page-login {
            .margin-top-35 {
                margin-top: 35px;
            }
         }
 }

You just need to give no-lines on this element <ion-list>.Doc about it.

Like this: Working Plunker

<ion-list no-lines>

  <ion-item>
    <ion-label fixed>Username</ion-label>
    <ion-input type="text"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label fixed>Password</ion-label>
    <ion-input type="password"></ion-input>
  </ion-item>

</ion-list>

If you need to learn how to change default them on Ionic2, I highly recommend to read this article.A Guide to Styling an Ionic 2 Application

You don't need to use !import hack if you use styles as shown below inside the page's component. Use .ios,.md like this:

login.scss

 .ios,
    .md {
        page-login {
            .margin-top-35 {
                margin-top: 35px;
            }
         }
 }

相关问答

更多
  • 这是可能的,但你必须重写组件的本地风格来做到这一点。 在我们的项目中,我们使用Toastr为您提供显示错误或信息的标准方法,并且可以更轻松地覆盖。 将它包含在你的项目中只包括js和css 然后,API允许你提出一个信息或一个错误 toastr.info('yourmessage') toastr.error('your message') toastr. ...
  • 您需要将background-color应用于ion-header-bar元素。 例: .backarrow-bar { background-color': rgba(255, 0, 0, 0.5); } You need to apply the background-color to ion-header-bar element. example: .backarrow-bar { background-color': rgba(255, 0, 0, 0.5); }
  • 除了每个页面特定的scss文件外,ionic还有一个位于应用程序文件夹(src / app / app.scss)中的scss文件。 有什么,值得所有网页。 当文件是特定于页面的时候,这意味着无论你在scss文件中使用什么,它都将特定于它所属的页面。 除了这两个地方,在离子结构中,还有一个粘贴主题(src / theme),还有另一个scss文件(variables.scss),如果你打开,你会看到有一些标准的颜色的系统以及其他细节。 例如,如果要测试,请更改“主”变量的颜色。 您会注意到您应用的默认颜色已 ...
  • 我通过覆盖sass文件解决了我的问题。 添加到ionic.app.sass文件的样式代码如下所示。 .platform-ios.platform-cordova:not(.fullscreen) .bar-header:not(.bar-subheader) height: 84px .platform-ios.platform-cordova:not(.fullscreen) .bar-header:not(.bar-subheader).item-input-inset .item-input- ...
  • //first, download firebase with "npm install --save firebase" // in app.components.ts `Import firebase from 'firebase/app';` // initialize your app with firebase details in app.modules.ts `var app = firebase.initializeApp({ apiKey: '', au ...
  • Ionic2可以采取一些学习曲线,因为他们已经重做了很多Angular2的工作方式,但是一旦你习惯它,它真的很棒...... 要将scss添加到组件中非常简单,只需将其放入带有TS / html的文件夹中,离子构建gulp过程将为您完成剩下的工作。 所以只要为styleUrls杀掉那一行就可以了。 它确实; 但是,带有css继承的插孔,所以你要小心如何设置它。 Ionic2 can take a bit of learning curve as they've redone a lot of how Ang ...
  • 当数字变化时触发一个方法: ... 那么你的方法应该只是将返回的比例映射到特定的颜色,这里有一个很好的例子: https : //codepen.io/zhipeng/pen/gBdDE Fire a method when the number gets changed like so:
  • 你只需要在这个元素上给出no-lines 。 关于它的医生 。 像这样: 工作Plunker Username Password
  • @Component({ selector: 'page-home', templateUrl: 'home.html' }) 在Component (本例中为page-home)中定义selector属性时,您将设置将用于该组件的html元素的名称 。 因此,Ionic将创建一个html元素,其标签为page-home ,并包含home.html文件的内容。 然后,如果你转到home.scss文件,你会看到该文件以 page-home { /* Style rules ... * ...
  • 在Ionic 3中我的这项工作:

    My Slide 1

    My Slide 2

    My Slide 3

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。